package com.jeect.productservice.event;

import org.springframework.context.ApplicationEvent;

import java.util.Map;

public class RedisEvent extends ApplicationEvent {
    private Map<String,Map<String,Object>> target;

    public RedisEvent(Object source) {
        super(source);
    }

    public RedisEvent(Object source, Map<String,Map<String,Object>>target) {
        super(source);
        this.target=target;
    }

    @Override
    public Object getSource() {
        return super.getSource();
    }

    public Map<String, Map<String, Object>> getTarget() {
        return target;
    }
}
